/**
 * 展业人员表 api 封装
 *
 * @Author:    zzb
 * @Date:      2025-01-23 04:08:26
 */
import { postRequest } from '/@/lib/axios'

// 业务员查代理商列表
export function exhibitionSubPage(param) {
  return postRequest('/b-operation/exhibition/pageBySupervisor', param)
}

export const exhibitionApi = {
  /**
   * 分页查询展业人员  @author  zzb
   */
  queryPage: (param) => {
    return postRequest('/b-operation/exhibition/page', param)
  },

  /**
   * 新增展业人员  @author  zzb
   */
  insert: (param) => {
    return postRequest('/b-operation/exhibition/insert', param)
  },

  /**
   * 修改展业人员  @author  zzb
   */
  update: (param) => {
    return postRequest('/b-operation/exhibition/update', param)
  },

  /**
   * 查询单个  @author  zzb
   */
  findOne: (param) => {
    return postRequest('/b-operation/exhibition/find_id', param)
  },
  /**
   * 根据id查询展业人员
   */
  findId: (param) => {
    return postRequest('/b-operation/exhibition/find_id', param)
  },
}
